package shujia.day07.homework;

public class SeaPizza extends Pizza{
    private String info;

    public SeaPizza(String info) {
        this.info = info;
    }

    public SeaPizza(String name, int size, int price, String info) {
        super(name, size, price);
        this.info = info;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }


    @Override
    public void show() {
        System.out.println("名称："+this.getName());
        System.out.println("价格："+this.getPrice()+"元");
        System.out.println("大小："+this.getSize()+"寸");
        System.out.println("配料："+this.getInfo());
    }
}
